package com.vichat.user.entity;


import javax.persistence.*;

/***************
 *author: autogen
 *version: 2018-11-26 14:20:34.997
 */
@Entity
@Table(name = "ccs_sec_role_function",catalog = "ccsdb")
public class CcsSecRoleFunction implements java.io.Serializable{

	private static final long serialVersionUID = 1L;
	


    public static final String TABLE = "ccs_sec_role_function";

    /**关系ID */
	public static final String ALIAS_RFID = "rfid";
    /**角色ID */
	public static final String ALIAS_ROID = "roid";
    /**菜单ID */
	public static final String ALIAS_FID = "fid";
    /**数据 0 无效 1 有效 */
	public static final String ALIAS_STATE = "state";
    /** */
	public static final String ALIAS_CREATE_TIME = "create_time";
    /** */
	public static final String ALIAS_UPDATE_TIME = "update_time";
	
	

 	@Id
@   GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "rfid", unique = true, nullable = false)
    public java.lang.Long rfid;
  
 	@Column(name = "roid")
    public java.lang.Long roid;
  
	@Column(name = "fid")
    public java.lang.Long fid;
  
 	@Column(name = "state")
    public java.lang.Long state = 1l;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "create_time")
    public java.util.Date createTime;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "update_time")
    public java.util.Date updateTime;
  





	public java.lang.Long getRfid() {
		return this.rfid;
	}
	
	public void setRfid(java.lang.Long value) {
		this.rfid = value;
	}

	public java.lang.Long getRoid() {
		return this.roid;
	}
	
	public void setRoid(java.lang.Long value) {
		this.roid = value;
	}

	public java.lang.Long getFid() {
		return this.fid;
	}
	
	public void setFid(java.lang.Long value) {
		this.fid = value;
	}

	public java.lang.Long getState() {
		return this.state;
	}
	
	public void setState(java.lang.Long value) {
		this.state = value;
	}

	public java.util.Date getCreateTime() {
		return this.createTime;
	}
	
	public void setCreateTime(java.util.Date value) {
		this.createTime = value;
	}

	public java.util.Date getUpdateTime() {
		return this.updateTime;
	}
	
	public void setUpdateTime(java.util.Date value) {
		this.updateTime = value;
	}


	
	public CcsSecRoleFunction() {
	}
	
	public CcsSecRoleFunction(boolean qryflag) {
	    if(qryflag){
	    		this.rfid = null;
				this.roid = null;
				this.fid = null;
				this.state = null;
				this.createTime = null;
				this.updateTime = null;
			    }
	}


	public CcsSecRoleFunction(
	    java.lang.Long inRfid,
	    java.lang.Long inRoid,
	    java.lang.Long inFid,
	    java.lang.Long inState,
	    java.util.Date inCreateTime,
		java.util.Date inUpdateTime
	 ) {
		super();
				this.rfid = inRfid;
				this.roid = inRoid;
				this.fid = inFid;
				this.state = inState;
				this.createTime = inCreateTime;
				this.updateTime = inUpdateTime;
			}





}

